package com.hyh.command;

import com.hyh.model.Window;

public class WindowCommand implements Command {

	private Window window;
	public WindowCommand(Window window) {
		this.window = window;
	}
	@Override
	public void execute() {
		window.open();
	}

	@Override
	public void undo() {
		window.close();
	}

}
